<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="s" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html><html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>日志查看</title>
    <style>
        .newtitle {
            PADDING-LEFT: 15px;
            BACKGROUND: url('');
            PADDING-BOTTOM: 4px;
            BORDER-LEFT: #c0dcf2 1px solid;
        }
    </style>
    <jsp:include page="easyuiIncludeJS.jsp"/>
    <script type="text/javascript">
        $(function () {
            var pager = $(".easyui-datagrid").datagrid('getPager');
            $(pager).pagination({
                total:${pager.totalRows},
                pageSize:${pager.pageRow},
                displayMsg: '{from}-{to}/{total}',
                pageNumber:${pager.cur_page},
                afterPageText: '页，共{pages}页',
                pageList: [30, 600, 900, 3000, 5000, 10000],
                loading: false,
                showPageList: true,
                showRefresh: true,
                //刷新方法
                onBeforeRefresh: function (p, s) {
                    location.href = "${pageContext.request.contextPath }/admin/systemLog/list?cur_page=" + p + "&pageRow=" + s;
                },
                onSelectPage: function (p, s) {
                    location.href = "${pageContext.request.contextPath }/admin/systemLog/list?cur_page=" + p + "&pageRow=" + s;
                }
            });
            $('#changesize').datagrid('resize', {
                height:document.body.clientHeight-60
            });
        });

        function ss() {
            document.forms[0].submit();
        }
    </script>
</head>
<body>
<form id="form1" modelAttribute="enrollment" action="${pageContext.request.contextPath}/admin/systemLog/list" method="post">
    开始日期:<input class="easyui-datebox" id="optime" name="optime" value="${systemlogVo.optime}" editable="false" style="width:130px;">
    结束时间:<input class="easyui-datebox" id="optime1" name="optime1" value="${systemlogVo.optime1}" editable="false" style="width:130px;">
    <a href="javascript:void(0);" class="easyui-linkbutton" onclick="ss();" iconCls="icon-search" style="height: 25px;">搜索</a>
</form>
<br/>
<table  class="easyui-datagrid" id="changesize" style="width: auto;height: 550px;" pagination="true" singleSelect="true" >
    <thead>
    <tr>
        <th align="center" width="60px;" field="logId">编号</th>
        <th align="center" width="100px;" field="emoName">操作人</th>
        <th align="center" width="150px;" field="ipAddr">IP地址</th>
        <th align="center" width="150px;" field="optime">操作时间</th>
        <th align="center" width="150px;" field="tables">操作数据表</th>
        <th align="left" width="600px;" field="msg">内容</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${pager.datas}" var="d">
        <tr>
            <td>${d.logId}</td>
            <td>${d.empName}</td>
            <td>${d.ipAddr}</td>
            <td>${d.optime}</td>
            <td>${d.tables}</td>
            <td>${d.msg}</td>
        </tr>
    </c:forEach>
    </tbody>
</table>


</body>
</html>
